package com.horay.springclouddemo.client.eureka.svn;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 服务启动类
 *
 * @author heyingcheng
 * @date 2019/11/2 17:29
 */
@Slf4j
@EnableDiscoveryClient
@SpringBootApplication
public class EurekaClientSvnApplication implements CommandLineRunner {

    @Value("${spring.cloud.zookeeper.connect-string}")
    private String connectString;

    public static void main(String[] args) {
        SpringApplication.run(EurekaClientSvnApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        log.info("connectString:[{}]", connectString);
    }

}
